<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>控制语句</title>
</head>
<body>
    {% if age >= 18 %}
        <p>您已成年,可以进入网吧</p>
    {% else %}
        <p>您未成年,不能进入网吧</p>
    {% endif %}

    {% for book in books %}
        <div>图书名称：{{book.name}},图书价格：{{book.price}}</div>
    {% endfor %}
</body>
</html>